<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sitemap Validation Service</title>
    <meta name="description" content="Simple service which for validating various types of sitemaps supported by Google, including Web, Sitemap Index, News, Video, Image, Code Search and Geo sitemaps" />
    <link href="/style/style.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
    <style type="text/css"> 
    .thrColLiqHdr #sidebar2, .thrColLiqHdr #sidebar1 { padding-top: 30px; }
    .thrColLiqHdr #mainContent { zoom: 1; padding-top: 15px; }
    #se_res {overflow:inherit!important;}
    
    </style>
    <![endif]-->
</head>

<body class="thrColLiqHdr">
<div id="container">
 <div id="header">
 	<div class="hboxL">
    	<a href="./" style="text-decoration:none"><h1 style="color:#069; font-family:'Courier New', Courier, monospace">Sitemap<span style="color:#06C; font-size:18px;">Validation</span></h1></a>
    </div>
    <div class="hboxr">
		<%
	    UserService userService = UserServiceFactory.getUserService();
	    User user = userService.getCurrentUser();
	    if (user != null) {
		%>
		<p>Hello, <%= user.getNickname() %>! (You can <a href="<%= userService.createLogoutURL(request.getRequestURI()) %>">sign out</a>.)
		</p>
		<%
		    } else {
		%>
		<p>Hello! <a href="<%= userService.createLoginURL(request.getRequestURI()) %>">Sign in</a>.
		</p>
		<%
		    }
		%>
    </div>
    <div class="hline"></div>
 </div>
  <div id="sidebar1">
  <h4>Useful links</h4>
  	<ul>
		<li><a href='http://sitemaps.org' title='Sitemaps.org'>Web Sitemap specification</a></li>
		<li><a href='http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=74288' title='News Sitemap Specification'>News Sitemap Specification</a></li>
		<li><a href='http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=80472' title='Video Sitemap Specification'>Video Sitemap Specification</a></li>
		<li><a href='http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=75224' title='Code Search Sitemap Specification'>Code Search Sitemap Specification</a></li>
		<li><a href='http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=94555' title='Geo Sitemap Specification'>Geo Sitemap Specification</a></li>
		<li><a href='http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=178636' title='Image Sitemap Specification'>Image Sitemap Specification</a></li>
		<li>&nbsp;</li>
		<li><a href='http://www.google.com/webmasters/' title='Google Webmaster Central'>Google Webmaster Central</a></li>
		<li><a href='http://www.google.com/support/forum/p/Webmasters?hl=en' title=''>Google Webmaster Help Forum</a></li>
	</ul>
  </div>

  <div id="mainContent">
  	<form method="get" action="/sitemap_validator" class="fo">
			<p><strong>The location of your sitemap:</strong></p>
			<p style="text-align: center"><input type="text" name="url" class="url"  /></p>
			<p style="margin-top:20px;"><strong>Type of the sitemap:</strong></p>
			<p style="text-align: center">
				<label class="sm_label">Web Sitemap<input type="radio" name="type" value="web" checked="checked" /></label>
				<label class="sm_label">News Sitemap<input type="radio" name="type" value="news" /></label>
				<label class="sm_label">Video Sitemap<input type="radio" name="type" value="video" /></label>
				<label class="sm_label">Geo Sitemap<input type="radio" name="type" value="geo" /></label>
				<label class="sm_label">Image Sitemap<input type="radio" name="type" value="image" /></label>
				<label class="sm_label">Code Sitemap<input type="radio" name="type" value="code" /></label>
				<label class="sm_label">Sitemap Index <input type="radio" name="type" value="index" /></label>
			</p>
			<p><input type="submit" value=" Validate sitemap " /></p>
	</form>
  </div><!-- #ends main content -->
	<br class="clearfloat" />
	<div id="footer">
	    <p style="text-align:right"> 
    		<a href="http://appengine.google.com" target="_blank"><img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" 
alt="Powered by Google App Engine" /></a>
		</p>
  	</div><!-- end #footer -->
</div><!-- end #container --> 

</body>
</html>
